package com.spboot.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.spboot.entity.Like;
import com.spboot.mapper.LikeMapper;
import com.spboot.service.LikeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guocb
 * @since 2020-04-27
 */
@Service
public class LikeServiceImpl extends ServiceImpl<LikeMapper, Like> implements LikeService {

    @Override
    public int insert(Long Informationid,Long userid) {
        return this.baseMapper.insert(Informationid,userid);
    }

    @Override
    public Long delete(Long informationid, Long userid) {
        return this.baseMapper.delete(informationid,userid);
    }

    @Override
    public IPage<Like> likeall(Integer userid,IPage<Like> page, Wrapper<Like> paramWrapper) {
        return this.baseMapper.likeall(userid,page, paramWrapper);
    }

    @Override
    public Integer sum(Integer userid) {
        return this.baseMapper.sum(userid);
    }

    @Override
    public Integer selectsum(Long informationid, Long editionid, Long colorid, Long priceid) {
        return this.baseMapper.selectsum(informationid, editionid, colorid, priceid);
    }

    @Override
    public int inserttable(Long informationid, Long editionid, Long colorid, Long priceid) {
        return this.baseMapper.inserttable(informationid, editionid, colorid, priceid);
    }

    @Override
    public Integer selectid(Long informationid, Long editionid, Long colorid, Long priceid) {
        return this.baseMapper.selectid(informationid, editionid, colorid, priceid);
    }

    @Override
    public int tianjia(Long informationid, Long userid, Long tableid) {
        return this.baseMapper.tianjia(informationid, userid, tableid);
    }


}
